function acc=crossvalrun(data,settings,indices)
    lambda0 = settings(1);
    mu = settings(2);
    
    k = 5;
    acc = 0;
    for i=1:k
        testind=(indices==i); train = ~testind;
        beta=sgd(data(train,:),lambda0,mu);
        [tp,fn,fp,tn]=test(data(testind,:),beta);

        acc = acc+fp+fn;
    end
    
    settings
    acc
end